home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / a_man / cat1 / slip.z / slip
Encoding:
Text File  |  2002-10-03  |  18.8 KB  |  397 lines

  1.  
  2.  
  3.  
  4. SSSSLLLLIIIIPPPP((((1111MMMM))))                                                              SSSSLLLLIIIIPPPP((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      slip, if_sl, if_sl.o - Serial Line IP
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      sssslllliiiipppp [----ddddccccIIII] [----mmmm _n_e_t_m_a_s_k] [----MMMM _m_e_t_r_i_c] [----ssss _M_T_U] [----AAAA _a_t_i_m_e]
  13.          [----PPPP _p_o_r_t] [----TTTT _i_c_m_p__t_y_p_e] [----RRRR "_r_o_u_t_e_c_m_d"] [----SSSS _s_m_o_d]
  14.          [----pppp _p_r_o_t_o] [----uuuu _u_u_c_p] [----llll _l_o_c_a_l] ----rrrr _r_e_m_o_t_e {----iiii|----oooo|----qqqq}
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      SLIP or SL/IP stands for Serial Line Internet Protocol.  It is used to
  18.      extend a local area network using low speed telephone lines.  It can be
  19.      used to transfer data between machines which are using TCP/IP or UDP/IP.
  20.      The modems and communications lines used with SLIP are relatively
  21.      inexpensive, and operate at 2400 to 38,400 bits/second.  This makes SLIP
  22.      appropriate for remote sessions and modest file transfers.
  23.  
  24.      The sssslllliiiipppp program is used to connect to a remote machine.  It does
  25.      everything necessary to permit network data to reach the modem, and to
  26.      connect the TTY port to the rest the network system.  It does things that
  27.      are done by iiiiffffccccoooonnnnffffiiiigggg(1M) for other network interfaces.  The result is a
  28.      "point-to-point" link that can be part of an existing IP interwork.
  29.  
  30.      There are three main modes of the sssslllliiiipppp program.  When simply dialing a
  31.      remote machine, the ----oooo or "output" argument should be used.  When simply
  32.      answering the telephone or using an existing link, the ----iiii or "input" flag
  33.      must be used.
  34.  
  35.      When starting a "demand-dialing" link, the ----qqqq or "quiet" flag must be
  36.      used.  "Demand-dialing" or "quiet" mode is one in which the link is made
  37.      only when needed by network activity. When there is no activity, the link
  38.      is turned off.  When activity begins the modem link is established.
  39.      Activity is defined as packets that are not of certain types.  By
  40.      default, UDP and TCP packets to or from ports "daytime" (13), "time"
  41.      (37), "route" (520), 123 (ntp), and "timed" (525) (see /_e_t_c/_s_e_r_v_i_c_e_s) and
  42.      ICMP packets of types ICMP_UNREACH, ICMP_SOURCEQUENCH, ICMP_TSTAMP, and
  43.      ICMP_TSTAMPREPLY are not counted as activity.  These lists can be changed
  44.      with the ----PPPP and ----TTTT arguments.
  45.  
  46.      While a qqqquuuuiiiieeeetttt mode connection can be started at the receiving end of a
  47.      connection, it may not have the desired effect.  The daemon does not
  48.      expect to use the serial connection to its standard input in quiet mode.
  49.      If started in quiet mode as the result of the remote system dialing in,
  50.      the daemon will ignore the incoming serial connection.  It expects to
  51.      wait quietly until it sees locally generated traffic and the need to dial
  52.      its own new link.  One might conceivably start a quiet mode daemon
  53.      remotely for a simple kind of traffic driven "dial-back."
  54.  
  55.      A sssslllliiiipppp program using demand-dialing can call another sssslllliiiipppp program which
  56.      is in either output or demand-dialing mode.  In case the other end is
  57.      also using demand-dialing, demand-dialing uses random binary exponential
  58.      backoffs after failed attempts to call.
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. SSSSLLLLIIIIPPPP((((1111MMMM))))                                                              SSSSLLLLIIIIPPPP((((1111MMMM))))
  71.  
  72.  
  73.  
  74.      The ----PPPP argument can either clear or augment the list of ports not counted
  75.      as activity.  If the string following "-P" is a single dash (-), the list
  76.      of ports is cleared.  Otherwise, the program tries to interpret the
  77.      string as the name of a TCP port, the name of a UDP port, or a number, in
  78.      that order.  The ----TTTT argument is similar, except that it is given either a
  79.      single dash (-) or a decimal number to clear or augment the list of ICMP
  80.      types.
  81.  
  82.      ----AAAA is used to specify a number of seconds of no activity after which the
  83.      link is turned off.  Two numbers separated by a comma can be specified,
  84.      with the first one the number of seconds of inactivity while no TCP
  85.      connections are open, and the second the number of seconds while a
  86.      connection is open.  The lower layers snoop on packets to infer the
  87.      number of open TCP connections that go over the link.  This snooping
  88.      cannot be made entirely reliable, because the end of the connection may
  89.      be a distant machine that forwards only some of its packets through this
  90.      machine.  The snooping works only when "cslip" protocol is used (see
  91.      below).  Still, "30,300" can limit many telephone calls for quick,
  92.      automatic transactions like email to less than a minute, without making
  93.      remote interactive sessions painful.
  94.  
  95.      If -A is not specified but "quiet" mode is, a value of "30,300" is the
  96.      default.
  97.  
  98.      The ----rrrr argument must be used to specify the host name or IP address of
  99.      the remote end of the link.  If the ----llll argument is not used, the sssslllliiiipppp
  100.      program assumes the local end of the link has the same IP address as the
  101.      hostname of the machine.  This default is usually appropriate, whether
  102.      connecting two ethernets or extending an ethernet to a distant, isolated
  103.      workstation.  In the latter case, it is best to use a single network
  104.      number and allocate host numbers on that network for remote workstations.
  105.  
  106.      The ----pppp argument selects the variety of SLIP protocol.  The common or
  107.      standard variety is the default or specified with _s_t_d.  A protocol with
  108.      adds a checksum to the standard variety is specified with _c_k_s_u_m.  A
  109.      version which compresses TCP/IP to 3 bytes consisting of framing,
  110.      checksum and TCP/IP protocol information in addition to user data bytes
  111.      is selected with _c_o_m_p.  A compressing protocol is useful with modems such
  112.      as the Telebit Trailblazer.
  113.  
  114.      A version which compresses TCP/IP to a varying number of bytes, sometimes
  115.      as few as 4 counting framing is selected with _c_s_l_i_p.  This is what is
  116.      commonly known as "Van Jacobson Compression," described in RFC 1144.
  117.  
  118.      The standard (----pppp _s_t_d) and "Van Jacobson Compression" ( ----pppp _c_s_l_i_p)
  119.      protocols do not have extra error detection or correction facilities.
  120.      This makes them inappropriate for NFS in heterogeneous networks, because
  121.      other NFS vendors often use UDP with checksums turned off.  However,
  122.      because the "comp" and "cksum" protocols include link error detection,
  123.      they can be used reliably with NFS.  The low speed communications lines
  124.      commonly used make NFS slightly hard to use.
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. SSSSLLLLIIIIPPPP((((1111MMMM))))                                                              SSSSLLLLIIIIPPPP((((1111MMMM))))
  137.  
  138.  
  139.  
  140.      The ----uuuu argument specifies a name in the /_e_t_c/_u_u_c_p/_S_y_s_t_e_m_s file for
  141.      dialing. Its default value is the remote machine name.  UUCP hostnames
  142.      can be at most 7 or sometimes 8 characters long.  It is useful to use one
  143.      name for dialing and another for TCP/IP when the more public, harder to
  144.      change TCP/IP name is long.
  145.  
  146.      The ----dddd flag requests additional debugging information.  Additional
  147.      instances of -d produce more information.  The debugging information is
  148.      sent to the system log, /_v_a_r/_a_d_m/_S_Y_S_L_O_G, if its standard error file
  149.      descriptor is not a tty.  The signals SIGUSR1 and SIGUSR2 increase and
  150.      decrease, respectively, the amount of debugging information.
  151.  
  152.      Avoid increasing the debugging level to more than 1, because entire
  153.      packets will be logged, including those containing PPP PAP usernames and
  154.      passwords, which can let anyone who can read the system log discover the
  155.      passwords.
  156.  
  157.      Another reason to avoid increasing the debugging level to more than 1 is
  158.      that turns on messages from the IRIX kernel.  While the kernel is
  159.      displaying the message, it has all interrupts turned off, which can cause
  160.      input to be lost, which often causes more messages from the kernel, and
  161.      so on.
  162.  
  163.      The ----cccc flag tells the program to "camp" on the telephone, to redial the
  164.      remote machine whenever the link is broken.  It can only be used in the
  165.      "output" mode.  It is not needed in "quiet" mode..  The sssslllliiiipppp program must
  166.      be killed to finally terminate a link that is "camping" or in "quiet"
  167.      mode (see kkkkiiiillllllll(1) or kkkkiiiillllllllaaaallllllll(1M)).
  168.  
  169.      The ----RRRR or "route" argument can be used to install a default, static
  170.      route.  When the link is first established and later each time it is
  171.      restored when ----cccc is used, the string is given to the rrrroooouuuutttteeee(1M) command.
  172.      The command can be "-", in which case "route add default remote" is
  173.      assumed.
  174.  
  175.      The ----SSSS argument "pushes" the named STREAMS module below the if_sl STREAMS
  176.      module.  If there are more than one ----SSSS arguments, the named modules are
  177.      pushed in the order they are named.
  178.  
  179.      The ----mmmm, ----MMMM, and ----ssss arguments modify default parameters.  The default
  180.      netmask is the one implied by the IP address.  The default metric is 1.
  181.      The default maximum transfer unit, or "MTU" is 512 bytes.  Such a small
  182.      MTU is less efficient, but reduces latency for interactive applications.
  183.      The MTU can be reduced to 256 bytes.
  184.  
  185.      The ----IIII option causes the driver to discard all ICMP packets.  This
  186.      defends a very low speed link against ppppiiiinnnngggg packets which can otherwise
  187.      saturate the link. It is not recommended for links as fast or faster than
  188.      9600 bits/second.
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. SSSSLLLLIIIIPPPP((((1111MMMM))))                                                              SSSSLLLLIIIIPPPP((((1111MMMM))))
  203.  
  204.  
  205.  
  206.    IIIInnnnssssttttaaaallllllllaaaattttiiiioooonnnn NNNNooootttteeeessss
  207.      The program uses the dialing information on each appropriate line of the
  208.      /_e_t_c/_u_u_c_p/_S_y_s_t_e_m_s file until it succeeds.  This can be useful if there is
  209.      more than one telephone number that might be used to contact the remote
  210.      machine.  A /_e_t_c/_u_u_c_p/_S_y_s_t_e_m_s line like the following works well to call
  211.      an IRIS running this SLIP software:
  212.  
  213.           rmt Any ACUSLIP 19200 5551234 "" @\r\c ogin: mynam ssword: xxx SLIP
  214.  
  215.      The last check for "SLIP," output by the sssslllliiiipppp program by the remote IRIS
  216.      just before it starts the IP protocol, gets past any banners or messages
  217.      of the day.  It ensures the remote machine is not waiting for an
  218.      additional password.  The check for "SLIP" may not be appropriate with
  219.      other brands of computer.
  220.  
  221.      If the hostname "rmt" appears in the /_e_t_c/_h_o_s_t_s database, the following
  222.      shell script can be used to start the sssslllliiiipppp program with the Systems file
  223.      entry above:
  224.  
  225.           #!/bin/sh
  226.           exec </dev/null >/dev/null 2>&1
  227.           /usr/etc/slip -cp cslip -r rmt $* &
  228.  
  229.  
  230.      A machine which has no network connection other than SLIP should use a
  231.      terminator on its ethernet port, and so act as if it has a valid although
  232.      very small local area network.
  233.  
  234.      Because the sssslllliiiipppp program can use the UUCP control files, the best way to
  235.      install a SLIP connection is to first install a UUCP connection.  So, one
  236.      first creates appropriate entries in the /_e_t_c/_u_u_c_p/_D_i_a_l_e_r_s,
  237.      /_e_t_c/_u_u_c_p/_D_e_v_i_c_e_s, and /_e_t_c/_u_u_c_p/_S_y_s_t_e_m_s files, and then "debugs" the
  238.      connection with _c_u -_d _r_e_m_o_t_e_s_y_s_t_e_m.
  239.  
  240.      A server which other machines call to use SLIP should establish separate
  241.      "user names" in /etc/passwd (see ppppaaaasssssssswwwwdddd(4)), all using the
  242.      /usr/etc/remoteslip script as their "login shell."  The script should be
  243.      modified to recognize the remote machine by its "username," and to choose
  244.      appropriate parameters with which to execute the sssslllliiiipppp program.
  245.  
  246.      Since the sssslllliiiipppp program configures network interfaces, it must be executed
  247.      with UID 0, and so the password entry on the remote system should use UID
  248.      0.
  249.  
  250.      Routing demons can be used to exchange RIP packets (see rrrroooouuuutttteeeedddd(1M) or
  251.      ggggaaaatttteeeedddd(1M)) over the link, as well as advertise the link to the rest of
  252.      the IP network.  The -h option to rrrroooouuuutttteeeedddd can usefully reduce the
  253.      resulting clutter of "host-routes."  The -F option to rrrroooouuuutttteeeedddd on the
  254.      machine gatewaying a SLIP link to an ethernet causes a synthetic "default
  255.      route" to be sent over the SLIP link instead of the full routing tables,
  256.      making the cost of running RIP over the SLIP link negligible.
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. SSSSLLLLIIIIPPPP((((1111MMMM))))                                                              SSSSLLLLIIIIPPPP((((1111MMMM))))
  269.  
  270.  
  271.  
  272.      Each time the link is (re)established, the program sends a SIGHUP signal
  273.      to the gated and routed daemons, if they are running.  This causes the
  274.      routing daemons to more quickly notice the (probably) new network
  275.      interface and to start advertising adjusted routes.
  276.  
  277.      One can also use "static routing" with the ----RRRR argument described below or
  278.      with rrrroooouuuutttteeee(1M) commands in a /etc/init.d/network.local files associated
  279.      with the /_e_t_c/_i_n_i_t._d/_n_e_t_w_o_r_k file.
  280.  
  281.      The default TCP/IP window on SGI machines is 61440, which makes data move
  282.      faster over fast networks such as FDDI.  On slow networks such as PPP or
  283.      SLIP, both latency and throughput can often be significantly improved by
  284.      reducing the window to 4096 or even 2048.  The window can be change by
  285.      modifying the settings of tcp_sendspace and tcp_recvspace in
  286.      /_v_a_r/_s_y_s_g_e_n/_m_a_s_t_e_r._d/_b_s_d, and then reconfiguring the kernel with
  287.      aaaauuuuttttooooccccoooonnnnffffiiiigggg(1M).
  288.  
  289.      The network information service (NIS, see yyyyppppbbbbiiiinnnndddd(1M)) is not often useful
  290.      over a SLIP link.  It is usually necessary to use local copies of mail
  291.      aliases.  However, the Internet domain name server can be useful, by
  292.      creating a /_u_s_r/_e_t_c/_r_e_s_o_l_v._c_o_n_f  file (see rrrreeeessssoooollllvvvveeeerrrr(4)) similar to the
  293.      following but with the addresses and domain name changed appropriately:
  294.  
  295.           domain your.dom.ain
  296.           hostresorder local bind
  297.           nameserver 192.26.61.24
  298.           nameserver 192.26.61.21
  299.           nameserver 192.26.51.194
  300.  
  301.  
  302.      It is possible to use NFS over a SLIP link.  It is usually necessary to
  303.      adjust the mount options for the relatively long latencies and low
  304.      bandwidth (see aaaauuuuttttoooommmmoooouuuunnnntttt(1M) and ffffssssttttaaaabbbb(4)).  Timeouts should be set long
  305.      enough to allow a complete transaction to pass the link before becoming
  306.      too late, and having to be retransmitted.  A plausible value for _t_i_m_e_o
  307.      with default 8KByte block sizes over a 19.2Kbit/s link is 90, for 9
  308.      seconds.  It can be useful to increase the attribute timeouts
  309.      substantially, to minutes.
  310.  
  311.      To synchronize clocks over a SLIP link ttttiiiimmmmeeeedddd(1M) can be used, but
  312.      ttttiiiimmmmeeeessssllllaaaavvvveeee(1M) is generally better.
  313.  
  314.      Once each day at about midnight, if the slip program has been running for
  315.      at least several hours, it logs some statistics concerning its work for
  316.      the previous 24 hours.
  317.  
  318. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  319.      Error messages complaining "open()/dev/if_sl: No such device or address"
  320.      usually means that the kernel does not contain the required SLIP STREAMS
  321.      module, if_sl.  Ensure that the SLIP software has been installed on the
  322.      system.
  323.  
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. SSSSLLLLIIIIPPPP((((1111MMMM))))                                                              SSSSLLLLIIIIPPPP((((1111MMMM))))
  335.  
  336.  
  337.  
  338. FFFFIIIILLLLEEEESSSS
  339.      /etc/init.d/network              network start-up script
  340.      /etc/passwd
  341.      /var/adm/SYSLOG                  system log for debugging messages
  342.      /usr/etc/remoteslip              incoming configuration script
  343.      /etc/uucp/Systems                "modem chat scripts"
  344.      /etc/uucp/Dialers                "chat scripts" to control modems
  345.      /etc/uucp/Devices                tty port/modem configurations
  346.      /var/sysgen/master.d/if_sl       configuration file for kernel module
  347.      /var/sysgen/boot/if_sl.o         if_sl kernel module
  348.      /etc/hosts                       hostname database
  349.      /tmp/.slip.*                     rendezvous for demand dialing
  350.      /dev/tty[dmf]_x                   tty port attached to modem.
  351.  
  352. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  353.      automount(1M), cu(1), fstab(4)), ifconfig(1M), icmp(7P), master(4),
  354.      passwd(4), ppp(1M), resolver(4), syslog(1M), uucico(1M)
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.                                                                         PPPPaaaaggggeeee 6666
  394.  
  395.  
  396.  
  397.